<%@taglib uri="/struts-tags" prefix = "s" %>
<%@ page language="java" import="java.sql.*,java.util.*"
	pageEncoding="utf-8"%>
	<%
		request.setCharacterEncoding("utf-8");
		response.setCharacterEncoding("utf-8");
		String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
 %>
<!DOCTYPE html>
<html lang="en">
<head>
 <link rel="stylesheet" type="text/css" href="<%=basePath %>/css/detail.css" />
	<meta charset="UTF-8">
	<title>Document</title>
	<script>
	
	  function hedeall() {
            document.getElementById("message").style.display = "none";
//             alert("测试成功");
//             document.getElementById("fade").style.display = "none";
            
        }

        function member_manged_menu() {
            document.getElementById("message").style.display = "block";
//             document.getElementById("fade").style.display ="block";
        }
        
	function test(){
		var t1 = document.getElementById("message_content");
// 		alert("成功2");
		console.log(t1);
		t1.innerHTML = "ok!";
		
		t1.selectionEnd = 1;
		moveEnd(t1);
	}
	function moveEnd(obj){ 
		obj.focus(); 
		var len = obj.value.length; 
		if (document.selection) { 
			var sel = obj.createTextRange(); 
			sel.moveStart('character',len); 
			sel.collapse(); 
			sel.select(); 
		} else if (typeof obj.selectionStart == 'number' && typeof obj.selectionEnd == 'number') { 
			obj.selectionStart = obj.selectionEnd = len; 
		} 
	}
	
	
	</script>
	
   
</head>
<body >
	  <div class="main_middle">
            <div id="main_content" class="center_980" style="padding:0px;">
    <div class="content_left">
    <div class="user_left_nav">
    <div class="user_photo">
        <div style="float: left;">
            <img class="user_profile" src="<%=path %><s:property value="#request.voItem.owner.ui.path"/>" alt="taohele"/>
        </div>
        <div class="user_nav_info">
            <ul>
                <li>taohele</li><li>男生</li><li>北京理工大学</li><li>上次登录:&nbsp;2016-02-13</li><li><a class="user_fan_faned_link">关注(0)</a>&nbsp;<a class="user_fan_faned_link" href="http://www.jiushujie.com/user/1927336/fan">粉丝(14)</a></li>            </ul>
        </div>
    </div>
    <div class="list_shadow_300"></div>
    
<div class="self_introduction">有需要的书籍请在页面下留言，谢谢<br/></div><div><input type="hidden" value="1927336" name="book_owner_id" id="book_owner_id" />

<div class="user_action_block"><form style="float:left" action="insert_fans?user.id=<s:property value="#request.voItem.owner.id"/>&item_id=<s:property value="#request.voItem.item_id"/>" method="post"><input style="width:135px;margin-right:10px;" class="button_user_action" 
 type="submit" onclick="insert_fans?user.id=<s:property value="#request.voItem.owner.id"/>&item_id=<s:property value="#request.voItem.item_id"/>" value="关注TA" ></form> </input><input style="width:135px" class="button_user_action" type="button" value="发消息" /></div><div style="display:none;" id="user_common_dlg">
<div class="dlg_coGntent"><input type="hidden" value="1927336" name="user_common_dlg_receiver_id" id="user_common_dlg_receiver_id" /><div class="row" ><span class="title">收信人:</span><br/><input class="ubm_textinput" disabled="disabled" style="width:560px;" size="100" maxlength="100" type="text" value="taohele" name="user_common_dlg_receiver_nickname" id="user_common_dlg_receiver_nickname" /></div><div class="row" ><span class="title">留言内容(限255字):</span><br/><textarea class="ubm_textinput" size="255" maxlength="255" name="user_common_dlg_content" id="user_common_dlg_content"></textarea></div><input id="user_common_dlg_submit_button" class="button" name="yt3" type="button" value="提交" /></div></div></div>    <div class="clearfloat"></div>
</div>

<div class="side_block">
    <div class="title">最近谁来看过</div><div class="separate"></div><div class="side_user_list"><ul>
    <s:iterator value="#request.userList" var="user" > 
    <li><a href="http://www.jiushujie.com/user/6553373" title="<s:property value="#user.u.name"/>&#13;<s:if test='"#user.u.sex=="male"'>男生</s:if><s:else>女生</s:else>&#13;<s:property value="#user.school"/>&#13;2016-02-13"><img src="<%=path %><s:property value="#user.u.ui.path"/>"></a></li>
       </s:iterator>
    </ul></div><div class="clearfloat"></div></div>
</div>
<div class="content_right">
<div class="breadcrumbs">
<a href="/user/1927336/sell">taohele的主页</a> &raquo; <a href="/user/1927336/sell">TA出售的二手书</a> &raquo; <span> </span></div>
<div class="book_item">
    <div class="book_pic">
        <img class="book_pic" alt="品江湖-买卖二手书,就上旧书街" title="品江湖-买卖二手书,就上旧书街" src="<%=path %><s:property value="#request.voItem.ii.path"/>"/>
    </div>
    <div class="info">
        <div class="detail">
           <h3></h3>
            <ul>
                <li>拥有者昵称: <s:property value="#request.voItem.owner.name"/></li>
                <li>拥有者学校: <s:property value="#request.voItem.owner.school"/></li>
                <li>种类: <s:property value="#request.voItem.classified"/></li>
                <li>新旧: <s:property value="#request.voItem.old_new"/></li>
                <li>
                    售价: 每<s:property value="#request.voItem.unit"/> <s:property value="#request.voItem.price"/> 元               </li>
                <li>发布时间: <span class="line-through-price"><s:property value="#request.voItem.createDate"/></span></li>
                <li>状态: <s:property value="#request.voItem.state"/></li>
                <li>联系方式: <s:property value="#request.voItem.owner.telePhone"/></li>
                <li>数量: <s:property value="#request.voItem.num"/></li>
                            </ul>
            <div style="clear: both;padding-top: 4px;">
                            </div>
            <div style="clear: both;padding-top: 4px;">
                                
            </div>
        </div>
    </div>
    <div class="clearfloat"></div>
    <div class="align_right" style="margin-top:10px;padding-top: 10px;height: 26px;border-top: 1px dashed rgb(222,222,222);">
        <div style="float:left;width:134px;">
            <!-- Baidu Button BEGIN -->
            <div id="bdshare" class="bdshare_b" style="line-height: 12px;"><img src="http://bdimg.share.baidu.com/static/images/type-button-1.jpg" />
            </div>
            <script type="text/javascript" id="bdshare_js" data="type=button" ></script>
            <script type="text/javascript" id="bdshell_js"></script>
            <script type="text/javascript">
                document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + new Date().getHours();
            </script>
            <!-- Baidu Button END -->
        </div>
        <div style="margin-left:140px;">
           <!--  <a href="/sell/create/id/3347223" class="">我也要出售此书</a>&nbsp;&nbsp; --><a id="buymessage" href="<%=path%>/item/message.jsp?rec_id=<s:property value="#request.voItem.owner.id"/>&rec_name=<s:property value="#request.voItem.owner.name"/>"  target="message"  onclick="member_manged_menu()" class="button_link">发消息求购</a>        </div>
    </div>
</div>
<div class="list_shadow"></div>
<iframe frameborder="no" scrolling="no"  src="show_topic?item_id=<s:property value="#request.voItem.item_id"/>" style="width:100%;height:687px;">
</iframe>

<div style="display:none;" id="mail_province_dlg">
<div class="school_wrap boxy-content" style="display: block; "><ul class="school_province_box" ><li><a href="#">北京</a></li><li><a href="#">上海</a></li><li><a href="#">黑龙江</a></li><li><a href="#">吉林</a></li><li><a href="#">辽宁</a></li><li><a href="#">天津</a></li><li><a href="#">安徽</a></li><li><a href="#">江苏</a></li><li><a href="#">浙江</a></li><li><a href="#">陕西</a></li><li><a href="#">湖北</a></li><li><a href="#">广东</a></li><li><a href="#">湖南</a></li><li><a href="#">甘肃</a></li><li><a href="#">四川</a></li><li><a href="#">山东</a></li><li><a href="#">福建</a></li><li><a href="#">河南</a></li><li><a href="#">重庆</a></li><li><a href="#">云南</a></li><li><a href="#">河北</a></li><li><a href="#">江西</a></li><li><a href="#">山西</a></li><li><a href="#">贵州</a></li><li><a href="#">广西</a></li><li><a href="#">内蒙古</a></li><li><a href="#">宁夏</a></li><li><a href="#">青海</a></li><li><a href="#">新疆</a></li><li><a href="#">海南</a></li><li><a href="#">西藏</a></li><li><a href="#">香港</a></li><li><a href="#">澳门</a></li><li><a href="#">台湾</a></li></ul></div></div>
</div>
<div class="clearfloat"></div>
</div>
        </div>

<iframe name="message" style="width:100%;height: 1344px;display:none;position:absolute;z-index:1001;" id="message" frameborder="no" scrolling="no"  src="<%=path%>/item/message.jsp?rec_id=<s:property value="#request.voItem.owner.id"/>&rec_=<s:property value="#request.voItem.owner.name"/>" ></iframe>
 
</body>
</html>